@inherits PartialViewMacroPage
@using Umbraco.Cms.Web
@using Umbraco.Cms.Web.Macros
@using Umbraco.Framework
@using PBDesk.com.Extension.UmbHelper
@{  
  string linkFormat = " | <a href=\"{0}\" title=\"Goto {1} TechNews\" >{2}</a>";
  string content = String.Format("<a href=\"{0}\" title=\"Goto {1} TechNews\" >{2}</a>", "/technews", "Home of", "Tech News Home");
  foreach(var page in MyHelper.GetHomeNode(DynamicModel).TechNewsPages)
  {
    content += String.Format(linkFormat, page.Url, page.Name, page.Name);
  }
}
@Umbraco.RenderMacro("sidebarWidget", new { Title = "More Tech News", Content = content })